package com.xcity.game.employee.template;

import com.xcity.game.employee.EmployeeQuality;

import naga.x.game.template.Template;
import naga.x.game.template.TemplateException;
import naga.x.game.template.annotation.Excel;

/**
 * 员工产出v2
 * @author yang.li
 *
 */
@Excel(value = "employee.xlsx", sheetName = "员工产出现金")
public class EmployeeProduceMoneyByQualityV2Template extends Template {

	/** 员工品质（0=D，1=C，2=B，3=A，4=AA，5=AAA，6=S） */
	protected EmployeeQuality quality;

	/** 每员工每分钟产钱 
	 * */
	protected int produceMoney;

	public EmployeeQuality getQuality() {
		return quality;
	}

	public void setQuality(EmployeeQuality quality) {
		this.quality = quality;
	}

	public int getProduceMoney() {
		return produceMoney;
	}

	public void setProduceMoney(int produceMoney) {
		this.produceMoney = produceMoney;
	}

	@Override
	public void validate() throws TemplateException {
		if (quality == null) {
			throw new TemplateException("Unsupported employee quality: excel=employee.xlsx, sheetName=员工产出现金");
		}
	}
}
